package com.saoft.qadmin.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {


    /**
     * application.yml 中视图前缀后缀
     * spring:
     *   mvc:
     *     view:
     *       prefix: /WEB-INF/jsp/
     *       suffix: .jsp
     *  前缀+返回字符串+后缀   /WEB-INF/jsp/index.jsp
     * @return
     */
    @GetMapping({"","/"})
    public String index(){
        return "index";
    }
}
